<!DOCTYPE html>
<html>
<head>
    <include file="./public/sty.html"/>
    <style>
        .c-pages{padding:20px 0; text-align: center;}
        .c-pages.tl{text-align: left;}
        .c-pages span{display: inline-block; margin-right: 5px; font-size:12px; height:28px; line-height: 28px;}
        .c-pages span.col{color: #fe344e; font-weight: 600;}
        .c-pages span a{display: inline-block; margin:0 3px; height:28px; line-height: 28px; text-align: center; padding:0 12px; border:1px solid #ccc; text-decoration: none; border-radius: 2px;}
        .c-pages span a:link,.c-pages span a:active,.c-pages span a:visited{color: #333;}
        .c-pages span a:hover{ color: #ff8540; }
        .c-pages span a.active{color: #fff; background: #ff8540;}
        .c-pages  .current{ color: #fff; background: #ff8540; display: inline-block; margin: 0 3px; height: 28px;
            line-height: 28px;
            text-align: center;
            padding: 0 12px;
            text-decoration: none;
            border-radius: 2px;
        }
    </style>
</head>
<body>
<div id="app" class="securityCenter">
    <include file="./public/header.html"/>

    <div class="container containerUser fix pt15" s="[object Object]">
        <div class="slideUser">
            <ul class="sildeSession"><h3><span></span>账号管理</h3>
                <li class=""><a href="./personalInfo.html">个人信息</a></li>
                <li class="curr"><a href="./securityCenter.html">安全中心</a></li>
                <li class=""><a href="./manageBankcard.html">银行卡管理</a></li>
            </ul>
            <ul class="sildeSession"><h3><span></span>投注管理</h3>
                <li><a href="./BetRecord.html" class="">投注记录</a></li>
                <li><a href="./seekOrder.html" class="">追号记录</a></li>
            </ul>
            <ul class="sildeSession"><h3><span></span>资金管理</h3>
                <li><a href="./BillRecord.html" class="">交易记录</a></li>
                <li class=""><a href="./PLstatement.html">今日盈亏</a></li>
            </ul>
            <ul class="sildeSession">
                <h3><span></span>代理中心</h3>
                <li><a href="{:U('Users/agentIntro')}" class="">代理说明</a></li>
                <li class=""><a href="{:U('Users/agentReport')}">代理报表</a></li>
                <li><a href="{:U('Users/lowerReport')}" class="">下级报表</a></li>
                <li class=""><a href="{:U('Users/manageInvite')}">下级开户</a></li>
                <li><a href="{:U('Users/agentMember')}" class="">会员管理</a></li>
                <li><a href="{:U('Users/agentBetRecord')}" class="">投注明细</a></li>
                <li><a href="{:U('Users/agentBillRecord')}" class="">交易明细</a></li>
            </ul>
            <ul class="sildeSession"><h3><span></span>消息管理</h3>
                <li><a href="{:U('Users/letter')}" class="">站内信</a></li>
                <li><a href="{:U('Users/Notice')}" class="">网站公告</a></li>
            </ul>
        </div>


        <div data-v-839ca216="" class="userRight">
            <div data-v-839ca216="" class="userTitle mgb10">交易明细</div>
            <div data-v-839ca216="" class="userMain mgb10">
                <ul data-v-839ca216="" class="todayView mgb10" style="text-align: left;"><em data-v-839ca216="">账号：</em>
                    <input data-v-839ca216="" type="text" placeholder="下级交易查询" class="userInput" value="{$zhanghao}">&nbsp;
                    <a data-v-839ca216="" class="submitBtn" onclick="sousuo()">搜索</a>
            &nbsp; <a data-v-839ca216="" class="submitBtn" href="{:U('Users/agentBillRecord')}" style="background-color: red">清空</a>
                </ul>

                <ul data-v-be5f85f8="" class="searchFirst" >
                    <li data-v-be5f85f8=""><span data-v-be5f85f8="">摘要：</span>
                        <select id="zhaiyao" class="userSearch"  onchange="xuanze2()">
                            <option value="0">全部摘要</option>
                            <option value="1" <?php if($type == '1')echo "selected"; ?>>充值入款</option>
                            <option value="2" <?php if($type == '2')echo "selected"; ?>>提现扣款</option>
                            <option value="3" <?php if($type == '3')echo "selected"; ?>>投注扣款</option>
                            <option value="4" <?php if($type == '4')echo "selected"; ?>>投注返点</option>
                            <option value="5" <?php if($type == '5')echo "selected"; ?>>奖金派送</option>
                            <option value="6" <?php if($type == '6')echo "selected"; ?>>提现退回</option>
                            <option value="7" <?php if($type == '7')echo "selected"; ?>>活动礼金</option>
                            <option value="8" <?php if($type == '8')echo "selected"; ?>>追号停止</option>
                            <option value="9" <?php if($type == '9')echo "selected"; ?>>误存提出</option>
                            <option value="10" <?php if($type == '10')echo "selected"; ?>>人工存入</option>
                            <option value="11" <?php if($type == '11')echo "selected"; ?>>其他优惠</option>
                            <option value="12" <?php if($type == '12')echo "selected"; ?>>投注撤单</option>
                            <option value="13"<?php if($type == '13')echo "selected"; ?>>代理明细</option>
                        </select>
                    </li>
                    <!----> <!---->
                    <li data-v-be5f85f8="" class="_time">
                        <span data-v-be5f85f8="">时间：
                            <a data-v-be5f85f8="" class="userSearch times <?php if($shijian=='1'){echo 'active';}; ?> " data-value="1" onclick="xuanze(this.id)" id="jintian" name="jintian">今天</a>
                            <a data-v-be5f85f8="" class="userSearch times <?php if($shijian=='2'){echo 'active';}; ?>" data-value="2"  onclick="xuanze(this.id)" id="zuotian" name="zuotian" >昨天</a>
                            <a data-v-be5f85f8="" class="userSearch times <?php if($shijian=='3'){echo 'active';}; ?>" data-value="3"  onclick="xuanze(this.id)" id="qitian" name="qitian">七天</a>
                        </span>
                    </li>

                    <li data-v-be5f85f8="" class="_state">
                        <span data-v-be5f85f8="">状态：
                             <a data-v-be5f85f8="" class="userSearch time <?php if($leixing=='0'){echo 'active';}; ?> " data-id="0" onclick="xuanze3(this.id)" id="zhanghu">账户明细</a>
                             <a data-v-be5f85f8="" class="userSearch time <?php if($leixing=='1'){echo 'active';}; ?> " data-id="1" onclick="xuanze3(this.id)" id="chongzhi">充值记录</a>
                             <a data-v-be5f85f8="" class="userSearch time <?php if($leixing=='2'){echo 'active';}; ?> " data-id="2" onclick="xuanze3(this.id)" id="tixian">提现记录</a>
                        </span>
                    </li>
                </ul>
                <div data-v-839ca216="" class="searchDetail">
                    <table data-v-839ca216="">
                        <tbody data-v-839ca216="">
                        <tr data-v-839ca216="">
                            <th data-v-839ca216="">账号</th>
                            <th data-v-839ca216="" colspan="1">时间</th>
                            <th data-v-839ca216="">摘要</th>
                            <th data-v-839ca216="">收入金额</th>
                            <th data-v-839ca216="">支出金额</th>
                            <th data-v-839ca216="">可用余额</th>
                            <th data-v-839ca216="">备注</th>
                        </tr>
                        </tbody>
                        <?php if(!empty($arr)){?>
                        <tbody class="Records_listCont">
                        <foreach name="arr" item="v">
                            <tr>
                                <td>{$v.zhanghao}</td>
                                <td><?php echo date('Y-m-d H:i:s',$v["ctime"]);?></td>
                                <td>
                                    <?php if($v["type"]=='1'){echo "充值入款";}
                                          elseif($v["type"]=='2'){echo "提现扣款";}
                                          elseif($v["type"]=='3'){echo "投注扣款";}
                                          elseif($v["type"]=='4'){echo "投注返点";}
                                          elseif($v["type"]=='5'){echo "奖金派送";}
                                          elseif($v["type"]=='6'){echo "提现退回";}
                                          elseif($v["type"]=='7'){echo "活动礼金";}
                                          elseif($v["type"]=='8'){echo "追号停止";}
                                          elseif($v["type"]=='9'){echo "误存提出";}
                                          elseif($v["type"]=='10'){echo "人工存入";}
                                          elseif($v["type"]=='11'){echo "其他优惠";}
                                          elseif($v["type"]=='12'){echo "投注撤单";}
                                          elseif($v["type"]=='13'){echo "代理明细";} ; ?>
                                </td>
                                <td><?php echo sprintf('%.2f',$v['shou_money']); ?></td>
                                <td><?php echo sprintf('%.2f',$v['zhi_money']); ?></td>
                                <td><?php echo sprintf('%.2f',$v['ky_money']); ?></td>
                                <td>{$v.remark}</td>
                            </tr>
                        </foreach>
                        </tbody>
                        <?php }else{ ?>
                        <div class="Records_listCont" id="t2">
                            <tr style="border-bottom-width: 0px;">
                                <td colspan="100">
                                    <div class="notContent" style="padding: 100px 0px;"><i class="iconfont"></i>暂无记录
                                    </div>
                                </td>
                            </tr>
                        </div>
                        <?php }?>
                    </table> <!----> <!----></div>
                <div class="c-pages tc">
                    <span>{$page}第{$p}页/共{$totalpage}页</span>
                </div>

                <div data-v-839ca216="" class="userTip mgt15"><p data-v-839ca216=""><i data-v-839ca216=""></i>温馨提示：交易明细最多只保留7天。
                </p></div>
            </div>
        </div>


    </div>
    <include file="./public/footer.html"/>
</div>
<!--弹出框 end-->
<!--验证账号弹出框 begion-->
<div id="layermbox2" class="layermbox layermbox0 layermshow" index="1">
    <div class="laymshade"></div>
    <div class="layermmain">
        <div class="section">
            <div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3>
                <button class="layermend"></button>
                <div class="layermcont">·您搜索的会员账号不存在·</div>
                <div class="layermbtn"><span type="1">确定</span></div>
            </div>
        </div>
    </div>
</div>
<!--验证账号弹出框 end-->

<script src="/style/js/jquery.min.js"></script>
<script src="/style/js/fx.js"></script>
<script>

    function sousuo() {
        var zhang = $(".userInput").val();
        var zhanghao = zhang.replace(/\s/g,"");
        if(zhanghao==''){
            return false;
        }
        $.ajax({
            type: "POST",
            url: "{:U('Users/zhanghao')}",
            data: {'zhanghao': zhanghao},
            success: function (dat) {
                if (dat == 0) {
                    $("#layermbox2").show();
                }else {
                    window.location.href = "/Users/agentBillRecord/zhanghao/" + zhanghao;
                }
            }
        });
    }

    $(function(){
        personalInfo();
        $(".userSearch").click(function (){
            $(this).addClass("active").siblings(".userSearch").removeClass("active");
        });
    })

    //时间的 传值
    function xuanze(a){
        var zhaiyao = $("#zhaiyao").val();
        var shijian = $("#"+a).attr("data-value");
        var zhuangtai = $(".userSearch.time.active").attr("data-id");
        window.location.href="/Users/agentBillRecord/zhaiyao/"+zhaiyao+"/shijian/"+shijian+"/zhuangtai/"+zhuangtai;
    }
    //摘要的 传值
    function xuanze2(){
        var zhaiyao = $("#zhaiyao").val();
        var shijian = $(".userSearch.times.active").attr("data-value");
        var zhuangtai = $(".userSearch.time.active").attr("data-id");
        window.location.href="/Users/agentBillRecord/zhaiyao/"+zhaiyao+"/shijian/"+shijian+"/zhuangtai/"+zhuangtai;
    }
    function xuanze3(b){
        var zhaiyao = $("#zhaiyao").val();
        var shijian = $(".userSearch.times.active").attr("data-value");
        var zhuangtai = $("#"+b).attr("data-id");
        window.location.href="/Users/agentBillRecord/zhaiyao/"+zhaiyao+"/shijian/"+shijian+"/zhuangtai/"+zhuangtai;
    }
</script>
</body>
</html>